﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005A1 RID: 1441
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishItemIdCsReq : IMessage<FinishItemIdCsReq>, IMessage, IEquatable<FinishItemIdCsReq>, IDeepCloneable<FinishItemIdCsReq>, IBufferMessage
	{
		// Token: 0x17001279 RID: 4729
		// (get) Token: 0x060040C6 RID: 16582 RVA: 0x000B14B4 File Offset: 0x000AF6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishItemIdCsReq> Parser
		{
			get
			{
				return FinishItemIdCsReq._parser;
			}
		}

		// Token: 0x1700127A RID: 4730
		// (get) Token: 0x060040C7 RID: 16583 RVA: 0x000B14BB File Offset: 0x000AF6BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishItemIdCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700127B RID: 4731
		// (get) Token: 0x060040C8 RID: 16584 RVA: 0x000B14CD File Offset: 0x000AF6CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishItemIdCsReq.Descriptor;
			}
		}

		// Token: 0x060040C9 RID: 16585 RVA: 0x000B14D4 File Offset: 0x000AF6D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishItemIdCsReq()
		{
		}

		// Token: 0x060040CA RID: 16586 RVA: 0x000B14DC File Offset: 0x000AF6DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishItemIdCsReq(FinishItemIdCsReq other) : this()
		{
			this.itemId_ = other.itemId_;
			this.textId_ = other.textId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060040CB RID: 16587 RVA: 0x000B150D File Offset: 0x000AF70D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishItemIdCsReq Clone()
		{
			return new FinishItemIdCsReq(this);
		}

		// Token: 0x1700127C RID: 4732
		// (get) Token: 0x060040CC RID: 16588 RVA: 0x000B1515 File Offset: 0x000AF715
		// (set) Token: 0x060040CD RID: 16589 RVA: 0x000B151D File Offset: 0x000AF71D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x1700127D RID: 4733
		// (get) Token: 0x060040CE RID: 16590 RVA: 0x000B1526 File Offset: 0x000AF726
		// (set) Token: 0x060040CF RID: 16591 RVA: 0x000B152E File Offset: 0x000AF72E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TextId
		{
			get
			{
				return this.textId_;
			}
			set
			{
				this.textId_ = value;
			}
		}

		// Token: 0x060040D0 RID: 16592 RVA: 0x000B1537 File Offset: 0x000AF737
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishItemIdCsReq);
		}

		// Token: 0x060040D1 RID: 16593 RVA: 0x000B1545 File Offset: 0x000AF745
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishItemIdCsReq other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && this.TextId == other.TextId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060040D2 RID: 16594 RVA: 0x000B1584 File Offset: 0x000AF784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.TextId != 0U)
			{
				num ^= this.TextId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060040D3 RID: 16595 RVA: 0x000B15DC File Offset: 0x000AF7DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060040D4 RID: 16596 RVA: 0x000B15E4 File Offset: 0x000AF7E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060040D5 RID: 16597 RVA: 0x000B15F0 File Offset: 0x000AF7F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TextId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.TextId);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060040D6 RID: 16598 RVA: 0x000B164C File Offset: 0x000AF84C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.TextId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TextId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060040D7 RID: 16599 RVA: 0x000B16A4 File Offset: 0x000AF8A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishItemIdCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.TextId != 0U)
			{
				this.TextId = other.TextId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060040D8 RID: 16600 RVA: 0x000B16F4 File Offset: 0x000AF8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060040D9 RID: 16601 RVA: 0x000B1700 File Offset: 0x000AF900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.TextId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001983 RID: 6531
		private static readonly MessageParser<FinishItemIdCsReq> _parser = new MessageParser<FinishItemIdCsReq>(() => new FinishItemIdCsReq());

		// Token: 0x04001984 RID: 6532
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001985 RID: 6533
		public const int ItemIdFieldNumber = 11;

		// Token: 0x04001986 RID: 6534
		private uint itemId_;

		// Token: 0x04001987 RID: 6535
		public const int TextIdFieldNumber = 9;

		// Token: 0x04001988 RID: 6536
		private uint textId_;
	}
}
